
package com.wyzz.hr.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.base.wf.AbstractWorkflow;
import com.wyzz.hr.pojo.base.BaseLeaverequest;


public class Leaverequest extends BaseLeaverequest {

	public Leaverequest() {
	}

	public Leaverequest(String lrId) {
		super(lrId);
	}

	public Leaverequest(String lrId, Department lrEmpDept, Leavetype lrLtNo,
			Employee lrEmpNo, Location lrEmpLocationNo, Integer lrNo,
			String lrReason, Date lrStartDate, Date lrEndDate,
			BigDecimal lrTotalHours, Integer lrStatus, Date lrCreateTime,
			Date lrLastChangeTime) {
		super(lrId, lrEmpDept, lrLtNo, lrEmpNo, lrEmpLocationNo, lrNo,
				lrReason, lrStartDate, lrEndDate, lrTotalHours, lrStatus,
				lrCreateTime, lrLastChangeTime);
	}

	public void setLrStatus(Integer lrStatus) {
		super.setLrStatus(lrStatus);
		if (lrStatus == null) {
			lrStatusMean = null;
		} else {
			String status = ComonBeans.getParameterValue(PROP_LR_STATUS,
					new String[] { lrStatus.toString() });
			if (status != null)
				lrStatusMean = status.trim();
			else
				lrStatusMean = null;
		}
	}

	public BigDecimal getUseableDays() {
		return useableDays;
	}

	public void setUseableDays(BigDecimal useableDays) {
		this.useableDays = useableDays;
	}

	public void setUseableDays(Double useableDays) {
		this.useableDays = new BigDecimal(useableDays.doubleValue());
	}

	public BigDecimal getUseableHours() {
		return useableHours;
	}

	public void setUseableHours(BigDecimal useableHours) {
		this.useableHours = useableHours;
	}

	public void setUseableHours(Double useableHours) {
		this.useableHours = new BigDecimal(useableHours.doubleValue());
	}

	public BigDecimal getUsedDays() {
		return usedDays;
	}

	public void setUsedDays(BigDecimal usedDays) {
		this.usedDays = usedDays;
	}

	public void setUsedDays(Double usedDays) {
		this.usedDays = new BigDecimal(usedDays.doubleValue());
	}

	public BigDecimal getUsedHours() {
		return usedHours;
	}

	public void setUsedHours(BigDecimal usedHours) {
		this.usedHours = usedHours;
	}

	public void setUsedHours(Double usedHours) {
		this.usedHours = new BigDecimal(usedHours.doubleValue());
	}

	public BigDecimal getRemainDays() {
		return remainDays;
	}

	public void setRemainDays(BigDecimal remainDays) {
		this.remainDays = remainDays;
	}

	public void setRemainDays(Double remainDays) {
		this.remainDays = new BigDecimal(remainDays.doubleValue());
	}

	public BigDecimal getRemainHours() {
		return remainHours;
	}

	public void setRemainHours(BigDecimal remainHours) {
		this.remainHours = remainHours;
	}

	public void setRemainHours(Double remainHours) {
		this.remainHours = new BigDecimal(remainHours.doubleValue());
	}

	public boolean isApplyLRByDay() {
		return applyLRByDay;
	}

	public void setApplyLRByDay(boolean applyLRByDay) {
		this.applyLRByDay = applyLRByDay;
	}

	public double getHoursPerDay() {
		return hoursPerDay;
	}

	public void setHoursPerDay(double hoursPerDay) {
		this.hoursPerDay = hoursPerDay;
	}

	public AbstractWorkflow getWorkflow() {
		return workflow;
	}

	public void setWorkflow(AbstractWorkflow workflow) {
		this.workflow = workflow;
	}

	public String getLrStatusMean() {
		return lrStatusMean;
	}

	public List getUpdateOvertimerequestList() {
		return updateOvertimerequestList;
	}

	public void setUpdateOvertimerequestList(List updateOvertimerequestList) {
		this.updateOvertimerequestList = updateOvertimerequestList;
	}

	public List getUpdateOvertimetxusedList() {
		return updateOvertimetxusedList;
	}

	public void setUpdateOvertimetxusedList(List updateOvertimetxusedList) {
		this.updateOvertimetxusedList = updateOvertimetxusedList;
	}

	public List getDeleteOvertimetxUsedList() {
		return deleteOvertimetxUsedList;
	}

	public void setDeleteOvertimetxUsedList(List deleteOvertimetxUsedList) {
		this.deleteOvertimetxUsedList = deleteOvertimetxUsedList;
	}

	private static final long serialVersionUID = 1L;
	private BigDecimal useableDays;
	private BigDecimal useableHours;
	private BigDecimal usedDays;
	private BigDecimal usedHours;
	private BigDecimal remainDays;
	private BigDecimal remainHours;
	private boolean applyLRByDay;
	private double hoursPerDay;
	private String lrStatusMean;
	private AbstractWorkflow workflow;
	private List updateOvertimerequestList;
	private List updateOvertimetxusedList;
	private List deleteOvertimetxUsedList;
}
